/**
 * 
 */
package ivan.cheng.views;

import ivan.cheng.utils.LogUtil;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * 主要目的是为了避免一个随机性崩溃
 * @author zhengfang
 *
 */
public class MyListView extends ListView {

	/**
	 * @param context
	 */
	public MyListView(Context context) {
		super(context);
	}

	/**
	 * @param context
	 * @param attrs
	 */
	public MyListView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	/**
	 * @param context
	 * @param attrs
	 * @param defStyle
	 */
	public MyListView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	protected void layoutChildren() {
		try {
			super.layoutChildren();
		} catch (IllegalStateException e) {
			LogUtil.w(e.getMessage());
			//HeaderViewListAdapter
			//((BaseAdapter)getAdapter()).notifyDataSetChanged();
		}
	}

	
}
